FROM node:10.13.0-alpine
RUN npm config set registry http://registry.npmjs.org/
COPY package.json /tmp/package.json
# COPY package-lock.json /tmp/package-lock.json

RUN npm cache verify
RUN cd /tmp && npm install
RUN mkdir /super && cp -a /tmp/node_modules /super/
WORKDIR /super
COPY . .
RUN NODE_ENV=production npm run build
EXPOSE 6777